package org.exez.modules.visitor.service;

import org.exez.modules.visitor.dto.terminal.ReservationApplicationPushDTO;
import org.exez.modules.visitor.entity.PushRecord;
import org.exez.modules.visitor.entity.PushWhiteList;
import org.exez.modules.visitor.sjy.ResultSjy;

import java.util.List;

/**
 * @Description: 商警云接口
 * @Author: exez-boot
 * @Date:   2020-06-04
 * @Version: V1.0
 */
public interface SjyService{

    /**
     * 获取token
     * @return
     */
    String getToken(String ip,String port);


    /**
     * 访客预约传输
     * @return
     */
    Boolean applicationDataDistribution();

    /**
     * 白名单传输
     * @return
     */
    Boolean whiteListDataDistribution();

    /**
     * 推送访客记录
     * @param k
     */
    void pushApplication(List<PushRecord> k);

    /**
     * 推送白名单记录
     * @param k
     */
    void pushWhiteToSjy(List<PushWhiteList> k);
    /**
     * 推送访客
     * @param reservationApplicationPushDTOS
     * @param ip
     * @param port
     * @return
     */
    ResultSjy pushVisitor(List<ReservationApplicationPushDTO> reservationApplicationPushDTOS, String code, String ip, String port);


    /**
     * 获取心跳
     * @return
     */
    Boolean getHeartbeat(Integer id);

    /**
     * 更新设备是否在线
     * @return
     */
    Boolean updateDeviceByHeartbeat();

}
